package com.xpu.cos.service;

import com.xpu.cos.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xpu.cos.result.Result;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ambitionjh
 * @since 2024-01-02
 */
public interface UserService extends IService<User> {
    //添加用户
    public Result addUser(User user);
    //修改用户
    public Result updateUser(User user);
    //根据id查询用户
    public Result getUserById(Integer id);
    //删除用户
    public Result deleteUser(Integer id);

    public Boolean getUserByUsername(User user);

    public User login(String name,String pwd);
}
